<template>
  <router-view/>
</template>

<script>
// function GET () {
//   const xhr = new XMLHttpRequest()
//   xhr.onreadystatechange = () => {
//     // eslint-disable-next-line no-empty
//     if (xhr.readyState === 4 || xhr.status === 200) {
//       console.log('XMLHttpRequest', xhr.responseText)
//       this.number = xhr.responseText
//     } else {
//       console.log('XMLHttpRequest', 'Failed to get online count')
//     }
//   }
//   xhr.open('GET', 'http://websockethttp.hfl123.cn/server/websocket/count', true)
//   xhr.send(null)
// }
</script>

<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}

html, body {
  margin: 0;
  padding: 0;
}
</style>
